"""


"""
from django.contrib.auth.models import Group, Permission
from rest_framework.generics import ListAPIView
from rest_framework.viewsets import ModelViewSet

from meiduo_admin.my_pagination import MyPageNumberPagination
from meiduo_admin.serializers.group_manage_serializers import GroupManageSerializer, PermissionSimpleSerializer


class GroupManageView(ModelViewSet):
    serializer_class = GroupManageSerializer
    queryset = Group.objects.order_by("id")
    pagination_class = MyPageNumberPagination


class PermissionSimpleView(ListAPIView):
    serializer_class = PermissionSimpleSerializer
    queryset = Permission.objects.all()